﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using VideoClub.Business;
using VideoClub.Business.Consultas;

namespace VideoClub.UI.Reportes
{
    public partial class FrmReporte3 : Form
    {
        public FrmReporte3()
        {
            InitializeComponent();
        }

        private void ConsultarClick(object sender, EventArgs e)
        {
            String apellido, genero;

            if (txtLetra1.Text == "")
                apellido = "";
            else
            {
                apellido = txtLetra1.Text +"%";    
            }


            genero = cboGenero.Text;
            dgvConsulta3.DataSource = ConsultasBO.ObtenerTodosLosDatosConsulta3(apellido, genero);

        }

        private void FrmReporte1_Load(object sender, EventArgs e)
        {
            cboGenero.DataSource = DatosComunesBO.ObtenerTodosLosGeneros();
            cboGenero.DisplayMember = "pDescripcion";
            cboGenero.ValueMember = "pidGenero";
        }

    }
}
